package com.seu.vcampus.vo;

import java.io.Serializable;

/**
 * 商品对象
 * 表示系统中的商品信息
 * 
 * @author 虚拟校园开发团队
 * @since 1.0.0
 */
public class Product implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String ID;
	private String name;
	private int stock;
	private double price;
	private String description;
	private String image;
	
	public Product(String id, String nm, int st, double pr, String des, String im)
	{
		this.ID = id;
		this.name = nm;
		this.stock = st;
		this.price = pr;
		this.description = des;
		this.image = im;
	}
	
	public void setID(String id) 
	{
		this.ID = id;
	}
	public String getID()
	{
		return this.ID;
	}
	
	public void setName(String nm)
	{
		this.name = nm;
	}
	public String getName()
	{
		return this.name;
	}
	
	public void setStock(int st)
	{
		this.stock = st;
	}
	public int getStock()
	{
		return this.stock;
	}
	
	public void setPrice(double pr)
	{
		this.price = pr;
	}
	public double getPrice()
	{
		return this.price;
	}
	
	public void setDescription(String des)
	{
		this.description = des;
	}
	public String getDescription()
	{
		return this.description;
	}
	
	public void setImage(String im)
	{
		this.image = im;
	}
	public String getImage()
	{
		return this.image;
	}
	
	@Override
	public String toString()
	{
		return "Product{ID=" + this.ID + ", name=" + this.name + ", stock=" + this.stock + ", price=" + this.price +"}";
	}
}
